﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Emulator.GameBoy.CPU.Interrupts
{
    public abstract class InterruptBase
    {
        protected abstract int RoutineAddress { get; }
        public virtual GBInstructionResult RunInterrupt(GameBoyCPU aCPU)
        {
            return GameBoyInstruction.PerformINTOperation(aCPU, RoutineAddress);
        }
    }
}
